<!--{include header}-->

<div id="bdw" class="bdw">

<div class="blank10"></div>
<div class="w960 center">
			<a target="_blank" href="/static/ad/ad01.html"><img src="http://t1.dpfile.com/tuan/20130609/5_130152475010000000_1425.jpg"></a>
</div>
<div class="blank10"></div>

<div class="w960 center">
    <!--{if option_yes('indexcateteam')}-->

  <div id="group-filter">
     <div class="hotbuy-box">
		<span class="Left">热门团购： </span>
		<ul>${current_hotbuy()}</ul>

    </div>
	 <div class="wrapper">
            <div class="filter-by-group-title"> 分类:</div>
			<div class="filter-by-group-body">
		    	<div class="top_group"><ul>${current_team_category( $group_id )}</ul></div>
		    	
		    	<!--{if $group_id }-->
		    	<div class="second_group">
		    		<ul>${current_team_category_erji( $group_id, $sgroup_id )}</ul>
				</div>
				<!--{/if}-->
			</div>
	</div>		
	<div class="wrapper">	
			 <div class="filter-by-group-title">区域:</div>
			<div class="filter-by-group-body">
		    	<div class="top_group"><ul>${current_team_category_district($group_id, $sgroup_id,$district_id, $businessd_id)}</ul></div>
		    	
		    	
		    	<!--{if $district_id }-->
		    	<div class="second_group">
		    		<ul>${current_team_category_businessd( $group_id, $sgroup_id,$district_id, $businessd_id )}</ul>
				</div>
				<!--{/if}-->
			</div>
	</div>
</div>

     <DIV class="sortbar">
     	<UL class="sortor">
     		${paixu( $group_id, $sgroup_id, $s )}
     		<li><a class="checkbox <!--{if $b}-->checkbox-checked<!--{/if}-->" href="/index.php?b=1" >免预约</a></li>
     		<li><a class="checkbox <!--{if $voucher}-->checkbox-checked<!--{/if}-->" href="/index.php?voucher=1" >代金券</a></li>
     	</UL>
    </DIV>
     
    <!--<div class="blank10"></div>
	<DIV class="sortbar">
     	<UL class="sortor">
     		<LI class="cur"><A href="/?gid=0">默认排序</A> </LI>
     		<LI><A href="/?gid=0&amp;fid_s=0&amp;s=jg">价格排序<I class="arrw"></I></A> </LI>
     		<LI><A href="/?gid=0&amp;fid_s=0&amp;s=b">最具人气<I class="arrw arrwdown"></I></A> </LI>
     		<LI><A href="/?gid=0&amp;fid_s=0&amp;s=zkd">折扣排序<I class="arrw arrwdown"></I></A> </LI>
     		<LI><A href="/?gid=0&amp;fid_s=0&amp;s=n">今日更新</A> </LI>
     		<LI><A title="50元以下" href="/?gid=0&amp;fid_s=0&amp;s=jg_50">50元以下</A> </LI>
     		<LI><A title="50—100元" href="/?gid=0&amp;fid_s=0&amp;s=jg_50_100">50—100元</A> </LI>
     		<LI><A title="100—300元" href="/?gid=0&amp;fid_s=0&amp;s=jg_100_300">100—300元</A> </LI>
     		<LI><A title="300元以上" href="/?gid=0&amp;fid_s=0&amp;s=jg_300">300元以上</A> </LI>
     	</UL>
     </DIV>  -->
	 <!--{/if}-->
</div>





<div id="bd" class="cf">


<!--{if $team['close_time']}-->
<div id="sysmsg-tip" class="sysmsg-tip-deal-close"><div class="sysmsg-tip-top"></div><div class="sysmsg-tip-content"><div class="deal-close"><div class="focus">抱歉，您来晚了，<br />团购已经结束啦。</div><div id="tip-deal-subscribe-body" class="body"><form id="tip-deal-subscribe-form" method="post" action="/subscribe.php" class="validator"><table><tr><td>不想错过明天的团购？立刻订阅每日最新团购信息：&nbsp;</td><td><input type="text" name="email" class="f-text" value="" require="true" datatype="email" /></td><td>&nbsp;<input class="commit" type="submit" value="订阅" /></td></tr></table></form></div></div><span id="sysmsg-tip-close" class="sysmsg-tip-close">关闭</span></div><div class="sysmsg-tip-bottom"></div></div>
<!--{/if}-->

<!--{if $order}-->
<div id="sysmsg-tip" ><div class="sysmsg-tip-top"></div><div class="sysmsg-tip-content">您已经下过订单，但还没有付款。<a href="/order/check.php?id={$order['id']}">查看订单并付款</a><span id="sysmsg-tip-close" class="sysmsg-tip-close">关闭</span></div><div class="sysmsg-tip-bottom"></div></div><div id="deal-default"> 
<!--{/if}-->

	<div id="deal-default">
		<div id="content" >
		
		<!-- {if $first_big} -->
			<div class="primary">
				<h1><a href="/team.php?id={$first['id']}">{$first['title']}</a></h1>
				<div class="main">
					<div class="deal-buy">
						<!--{if $first['state']=='soldout'}-->
                        <div class="deal-price-tag-soldout"></div>
						<p class="deal-price"><strong <!--{if $first['team_price'] > 9999}-->class="digits5"<!--{/if}-->>{$currency}${moneyit($first['team_price'])}</strong></p>
						<!--{else}-->
						<div class="deal-price-tag-open"></div>
						<p class="deal-price"><strong <!--{if $first['team_price'] > 9999}-->class="digits5"<!--{/if}-->>{$currency}${moneyit($first['team_price'])}</strong><span><a href="/team.php?id={$first['id']}" rel="nofollow"></a></span> </p>
						<!--{/if}-->
					</div>
					<table class="discount"><tbody>
						<tr>
							<th>原价</th>
							<th>折扣</th>
							<th>节省</th>
						</tr>
						<tr class="number">
							<td><del>{$currency}${moneyit($first['market_price'])}</del></td>
							<td>${team_discount($first)}折</td>
							<td>{$currency}${moneyit($first['market_price']-$first['team_price'])}</td>
						</tr>
						<tr>
							<td class="status-box" colspan="3">
								<div id="deal-status-147271" class=" deal-status deal-status-open"><p class="deal-buy-tip-top"><strong>{$first['now_number']}</strong> 人已购买</p></div>
								<div id="deal-timeleftfirst" curtime="{$now}000" diff="{$detail[$first['id']]['diff_time']}000" class="item-time">
								<ul id="counterfirst">
									<!--{if $detail[$first['id']]['left_day']>0}-->
									<li><span>{$detail[$first['id']]['left_day']}</span>天</li><li><span>{$detail[$first['id']]['left_hour']}</span>小时</li><li><span>{$detail[$first['id']]['left_minute']}</span>分钟</li>
									<!--{else}-->
										<li><span>{$detail[$first['id']]['left_hour']}</span>小时</li><li><span>{$detail[$first['id']]['left_minute']}</span>分钟</li><li><span>{$detail[$first['id']]['left_time']}</span>秒</li>
									<!--{/if}-->
								</ul>
								</div>
							</td>
						</tr>
					</tbody></table>
				</div>
				<div class="sidebar">
					<!-- {if $detail[$first['id']]['is_today']} -->
					<a class="new pngfix" title="点击查看详情" href="/team.php?id={$first['id']}" rel="nofollow"></a>
					<!-- {/if} -->
					<div class="cover">
						<a title="" href="/team.php?id={$first['id']}" rel="nofollow">
						<img src="${team_image($first['image'])}" alt="{$first['title']}" title="点击查看详情"></a>
					</div>
				</div>
			</div>
			<script>window.x_init_hook_multiclockfirst = function(){X.misc.multiclock('deal-timeleftfirst', 'counterfirst');};</script>
		<!-- {/if} -->
			
			<div class="secondary">
			<!--{loop $teams $tindex $team}-->
				<div class="item <!-- {if $tindex%2 == 0} -->odd<!-- {/if} -->">
					<div class="cover">
						<a title="{$team['title']}" href="/team.php?id={$team['id']}" rel="nofollow"><img src="${team_image($team['image'])}" width="310"  title="点击查看详情" alt="{$team['title']}"></a>
					</div>
					<div class="deal-mark">
						<!-- {if $detail[$team['id']]['is_today'] } -->
						<a href="/team.php?id={$team['id']}" class="new_reach" rel="nofollow" title="点击查看详情"></a>
						<!-- {/if} -->
						<!-- {if $team['walkin']=='Y'} -->
						<a href="/team.php?id={$team['id']}" class="walkin_tag" rel="nofollow" title="点击查看详情"></a>
						<!-- {/if} -->
						<!-- {if $team['multi_choice']=='Y'} -->
						<a href="/team.php?id={$team['id']}" class="multi_choice_tag" rel="nofollow" title="点击查看详情"></a>
						<!-- {/if} -->
					</div>
					<h1><a href="/team.php?id={$team['id']}">${mb_strimwidth($team['title'],0, 66,'...')}</a></h1>
					
					<div class="inner">
						
						<div class="deal-buy">
						    <!--{if $team['state']=='soldout'}-->
							<div class="deal-price-tag-soldout"></div>
							<div class="deal-price-tag"></div>
							<p class="deal-price"><strong>{$currency}${moneyit($team['team_price'])}</strong></p>
							<!--{else}-->
							
							<a class="deal-price-tag-open" href="/team.php?id={$team['id']}"></a>
							<!--<div class="deal-price-tag"></div>-->
							<!--<p class="deal-price">
								<span><a href="/team.php?id={$team['id']}" rel="nofollow"></a></span> </p>-->

							<!--{/if}-->
						</div>

						<table class="discount"><tbody>
							<tr>
								<td class="price"><strong>{$currency}${moneyit($team['team_price'])}</strong></td>
							</tr>
							<tr>
								<td class="origin_price">原价：{$currency}${moneyit($team['market_price'])}</td>
								<!-- <td class="discount_num">${team_discount($team)}折</td> -->
							</tr>
						</tbody>
						</table>
						<div class="left_time_buy_num">
							<div  id="deal-timeleft{$tindex}" curtime="{$now}000" diff="{$detail[$team['id']]['diff_time']}000" class="item-time">
							<ul id="counter{$tindex}">
							<!--{if $detail[$team['id']]['left_day']>0}-->
								<li><span>{$detail[$team['id']]['left_day']}</span>天</li><li><span>{$detail[$team['id']]['left_hour']}</span>小时</li><li><span>{$detail[$team['id']]['left_minute']}</span>分钟</li>
							<!--{else}-->
								<li><span>{$detail[$team['id']]['left_hour']}</span>小时</li><li><span>{$detail[$team['id']]['left_minute']}</span>分钟</li><li><span>{$detail[$team['id']]['left_time']}</span>秒</li>
							<!--{/if}-->
							</ul>
						</div>
						<div id="deal-status-bjwdrj" class="deal-status deal-status-open">
							<p class="deal-buy-tip-top"><strong>{$team['now_number']}</strong> 人已购买</p>
						</div>
						<!--<div class="clear"></div>-->
						</div>
					
					</div>
					<div class="clear"></div>
				</div>
				<script>window.x_init_hook_multiclock{$tindex} = function(){X.misc.multiclock('deal-timeleft{$tindex}', 'counter{$tindex}');};</script>
			<!-- {/loop} -->
			</div>
			<div class="clear"></div>
			<div>{$pagestring}</div>
		</div>
	<div id="sidebar">
		<!--{include block_side_lunbo}-->
		<!--{include block_side_hotteam}-->
        <!--{include block_side_daysign}-->
        
 		<!--{include block_side_invite}-->
		<!--{include block_side_bulletin}-->
		<!--{include block_side_flv}-->
		<!--{include block_side_others_seconds}-->
		<!--{include block_side_ask}-->
		
		<!--{include block_side_mobile}-->
		<!--{include block_side_vote}-->
		<!--{include block_side_business}-->
		
		
	</div>
</div>
</div> <!-- bd end -->
</div> <!-- bdw end -->

<!--{include footer}-->
